package com.mes.rule.domain;

import java.util.Date;
import java.util.Set;

import com.mes.common.domain.BasicModel;

/**
 * Rule entity.
 * 
 * @author niukay created on July 2nd, 2013
 */
@SuppressWarnings("serial")
public class Rule extends BasicModel
{
	public static String RULE_TYPE_USE = "use";
	public static String RULE_TYPE_TEMPLATE = "template";

	public static String RULE_STATE_DRAFT = "1";
	public static String RULE_STATE_CHECKFAIL = "2";
	public static String RULE_STATE_CHECKPASS = "3";
	public static String RULE_STATE_DEPLOY = "4";
	public static String RULE_STATE_ABANDON = "9";

	protected String ruleId;
	protected String ruleName;
	protected String ruleAlias;
	protected String ruleType;
	protected String ruleState;
	protected String ruleGroup;
	protected String ruleFile;
	protected String creatorUid;
	protected Date createTime;
	protected String modifier;
	protected Date modifyTime;
	protected String notes;
	protected String attributeList;
	protected String patternList;
	protected String actionList;
	protected String ruleDomain;
	protected Integer frequency;

	protected Set<RulePattern> patternSet;

	public String getUuid()
	{
		return ruleId;
	}

	public void setUuid(String uuid)
	{
		this.ruleId = uuid;
	}

	public String getRuleId()
	{
		return ruleId;
	}

	public void setRuleId(String ruleId)
	{
		this.ruleId = ruleId;
	}

	public String getRuleName()
	{
		return ruleName;
	}

	public void setRuleName(String ruleName)
	{
		this.ruleName = ruleName;
	}

	public String getRuleAlias()
	{
		return ruleAlias;
	}

	public void setRuleAlias(String ruleAlias)
	{
		this.ruleAlias = ruleAlias;
	}

	public String getRuleType()
	{
		return ruleType;
	}

	public void setRuleType(String ruleType)
	{
		this.ruleType = ruleType;
	}

	public String getRuleState()
	{
		return ruleState;
	}

	public void setRuleState(String ruleState)
	{
		this.ruleState = ruleState;
	}

	public String getRuleGroup()
	{
		return ruleGroup;
	}

	public void setRuleGroup(String ruleGroup)
	{
		this.ruleGroup = ruleGroup;
	}

	public String getRuleFile()
	{
		return ruleFile;
	}

	public void setRuleFile(String ruleFile)
	{
		this.ruleFile = ruleFile;
	}

	public String getCreatorUid()
	{
		return creatorUid;
	}

	public void setCreatorUid(String creatorUid)
	{
		this.creatorUid = creatorUid;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public String getModifier()
	{
		return modifier;
	}

	public void setModifier(String modifier)
	{
		this.modifier = modifier;
	}

	public Date getModifyTime()
	{
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime)
	{
		this.modifyTime = modifyTime;
	}

	public String getNotes()
	{
		return notes;
	}

	public void setNotes(String notes)
	{
		this.notes = notes;
	}

	public String getAttributeList()
	{
		return attributeList;
	}

	public void setAttributeList(String attributeList)
	{
		this.attributeList = attributeList;
	}

	public String getPatternList()
	{
		return patternList;
	}

	public void setPatternList(String patternList)
	{
		this.patternList = patternList;
	}

	public String getActionList()
	{
		return actionList;
	}

	public void setActionList(String actionList)
	{
		this.actionList = actionList;
	}

	public String getRuleDomain()
	{
		return ruleDomain;
	}

	public void setRuleDomain(String ruleDomain)
	{
		this.ruleDomain = ruleDomain;
	}

	public Integer getFrequency()
	{
		return frequency;
	}

	public void setFrequency(Integer frequency)
	{
		this.frequency = frequency;
	}

	public Set<RulePattern> getPatternSet()
	{
		return patternSet;
	}

	public void setPatternSet(Set<RulePattern> patternSet)
	{
		this.patternSet = patternSet;
	}
}